from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^areas/$', views.AreasView.as_view(), name='areas'),  # 省市区数据
    url(r'^address/create/$', views.CreateAddressView.as_view(), name='create_address'),  # 新增地址
    url(r'^address/(?P<address_id>\d+)/$', views.UpdateDestroyAddressView.as_view(), name='update_address'),  # 修改地址
    url(r'^address/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view(), name='default_address'),  # 设置默认地址
    url(r'^address/(?P<address_id>\d+)/title/$', views.UpdateTitleAddressView.as_view(), name='title_address'),  # 设置地址标题
]
